package com.scgl.zuzhi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户对象 scgl_user
 *
 * @author ruoyi
 * @date 2024-10-29
 */
public class ScglUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 账号id */
    private Long id;

    /** 账号用户名 */
    @Excel(name = "账号用户名")
    private String username;

    /** 账号密码 */
    @Excel(name = "账号密码")
    private String password;

    /** 员工头像 */
    @Excel(name = "员工头像")
    private String img;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 部门外键 */
    @Excel(name = "部门外键")
    private Long bid;

    /** 角色外键 */
    @Excel(name = "角色外键")
    private Long jid;

    /** 员工状态 */
    @Excel(name = "员工状态")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    private String bz;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cjdate;

    /** 创建人 */
    @Excel(name = "创建人")
    private String cjr;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setBid(Long bid)
    {
        this.bid = bid;
    }

    public Long getBid()
    {
        return bid;
    }
    public void setJid(Long jid)
    {
        this.jid = jid;
    }

    public Long getJid()
    {
        return jid;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setBz(String bz)
    {
        this.bz = bz;
    }

    public String getBz()
    {
        return bz;
    }
    public void setCjdate(Date cjdate)
    {
        this.cjdate = cjdate;
    }

    public Date getCjdate()
    {
        return cjdate;
    }
    public void setCjr(String cjr)
    {
        this.cjr = cjr;
    }

    public String getCjr()
    {
        return cjr;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("img", getImg())
            .append("name", getName())
            .append("phone", getPhone())
            .append("bid", getBid())
            .append("jid", getJid())
            .append("status", getStatus())
            .append("bz", getBz())
            .append("cjdate", getCjdate())
            .append("cjr", getCjr())
            .toString();
    }
}
